package demo1;
public class Dog extends Animal {
    public void Bark(){

        //Dog类继承Animal类的name成员变量
        System.out.println(name+"正在汪汪叫");
    }
}
